{extend name="public/base" /}

{block name="body"}
	<div class="main-title">
		<h2>学员详情[<i class="ca"></i><a href="{:url('Student/attend',['id'=>input('id')])}">{:get_student(input('id'))}</a>]</h2>
	</div>
		<div class="tab-wrap">
		<ul class="tab-nav nav"> 
			<li class=""><a href="{:url('Student/course',['id'=>input('id')])}">课程信息</a></li>
			<li class=""><a href="{:url('Student/clbum',['id'=>input('id')])}">班级信息</a></li>
			<li class="current"><a href="javascript:;">上课明细</a></li>
			<li class=""><a href="{:url('Student/pay',['id'=>input('id')])}">充扣明细</a></li>
		</ul>
		
		<div class="tab-content">
			<div class="cf">
				<div class="fl">
		            <a class="btn" href="{:url('Student/addAttend', ['student_id'=>input('id')])}">扣减课时</a>
		        </div>
		    </div>
			<div class="data-table table-striped">
				<table class="">
			    <thead>
			        <tr>
					<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
					<th class="">ID</th>
					<th class="">班级名称</th>
					<th class="">课程名称</th>
					<th class="">扣减课时</th>
					<th class="">剩余课时</th>
					<th class="">操作员</th>
					<th class="">操作时间</th>
					</tr>
			    </thead>
			    <tbody>
					{notempty name="_list"}
					{volist name="_list" id="vo"}
					<tr>
			            <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
						<td>{$vo.id} </td>
						<td>{$vo.clbum_id|get_clbum}</td>
						<td>{$vo.course_id|get_course}</td>
						
						<td>{$vo.deduction_hours} </td>
						<td>{$vo.remain_hours}</td>
						<td>{$vo.admin_id|get_nickname}</td>
						<td>{$vo.update_time|time_format}</td>
					</tr>
					{/volist}
					{else/}
					<td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
					{/notempty}
				</tbody>
			    </table>
			</div>
			<div class="page">
				{$_page}
			</div>
		</div>
	</div>
{/block}

{block name="script"}
<script type="text/javascript">
    //导航高亮
    highlight_subnav('{:url('Student/index')}');
</script>
{/block}
